package fr.generali.accueilclient.gwt.client.ui.components.form;

import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.ui.TextBox;

import fr.generali.accueilclient.gwt.client.ui.components.form.formitem.handler.PreventNonNumericEntriesHandler;

public class NumericTextBox extends TextBox {

    public NumericTextBox() {
        super();
        this.addKeyPressHandler(new PreventNonNumericEntriesHandler(this));
    }

    public NumericTextBox(Element element) {
        super(element);
        this.addKeyPressHandler(new PreventNonNumericEntriesHandler(this));
    }
    
}
